<!DOCTYPE html>
<html>
	<head>
		<meta charset="<?php echo $cfg_soft_lang; ?>">
		<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
		<title>修改新建文件</title>
		<link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
		<link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
		<link rel="stylesheet" href="../static/web/css/admin.css">
		<script src="../static/web/js/jquery.min.js"></script>
		<script src="../static/web/js/bootstrap.bundle.min.js"></script>
		<script src='js/main.js'></script>
		<script>
			function Post() {
				if (document.form1.filename.value == "") {
					ShowMsg("文件名不能为空");
					document.form1.filename.focus();
					return false;
				}
			}
		</script>
		<link rel="stylesheet" href="css/codemirror.css">
		<script src="js/codemirror.js"></script>
		<script src="js/mode/xml/xml.js"></script>
		<script src="js/mode/javascript/javascript.js"></script>
		<script src="js/mode/css/css.js"></script>
		<script src="js/mode/php/php.js"></script>
		<script src="js/mode/clike/clike.js"></script>
		<script src="js/mode/htmlmixed/htmlmixed.js"></script>
	</head>
	<body>
		<form method="POST" action="file_manage_control.php" name=form1 onSubmit="return Post()">
			<input type="hidden" name="fmdo" value="edit">
			<input type="hidden" name="backurl" value="{dede:global name='backurl' function='urlencode(@me)'/}">
			<input type="hidden" name="_csrf_token" value="{dede:global name='csrf_token'/}">
			<table width="100%" align="center" cellpadding="3" cellspacing="1" class="table maintable mt-3 mb-3">
				<tr>
					<td height="26" colspan="2" background="../static/web/img/wbg.gif" style="padding-left:10px">修改新建文件</td>
				</tr>
				<tr>
					<td height="26">工作目录</td>
					<td height="26"><input name="activepath" value="{dede:global name='activepath'/}" style="width:260px">（空白表示根目录，不允许用“..”形式的路径）</td>
				</tr>
				<tr>
					<td height="26">文件名称</td>
					<td height="26"><input name="filename" value="{dede:global name='filename'/}" style="width:260px">（不允许用 “..”形式的路径）</td>
				</tr>
				<tr class="table">
					<td colspan="2" style="padding:0">{dede:global name='contentView'/}</td>
				</tr>
				<tr>
					<td bgcolor="#f8f8f8" colspan="2" align="center" class="py-3">
						<button type="submit" name="B1" class="btn btn-success btn-sm">保存</button>
						<button type="reset" name="B2" class="btn btn-success btn-sm">重置</button>
						<button type="button" name="B4" class="btn btn-success btn-sm" onClick="javascript:history.go(-1);">返回</button>
					</td>
				</tr>
			</table>
		</form>
		<script>
			var editor = CodeMirror.fromTextArea(document.getElementById('str'), {
				lineNumbers: true,
				lineWrapping: true,
				mode: '{dede:global name='
				extension '/}'
			});
		</script>
	</body>
</html>